package com.CST.entity.ys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 预算编制数据
 *
 * @author qtx
 * @since 2023-05-15
 */
@Getter
@Setter
@TableName("YS_ORGANIZATION")
@ApiModel(value = "YsOrganization对象", description = "预算编制数据")
public class YsOrganization implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("年份")
    @TableField("YEAR")
    private Integer year;

    @ApiModelProperty("状态")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty("创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    @TableField("DELETE_FLAG")
    private Boolean deleteFlag;
}
